package cc.jorange.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import cc.jorange.bean.Role;

/**
 * 
 * @author Aaron
 *
 */
public interface RoleDao extends PagingAndSortingRepository<Role, Long> {
	
	@Query("from Role r where r.name=?1")
	List<Role> getRole(String name);

}
